//
//  WaterflowLayout.h
//  FlyGift
//
//  Created by lanou3g on 15/7/13.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import <UIKit/UIKit.h>

@class WaterflowLayout;

@protocol WaterflowLayoutDelegate <NSObject>

- (CGFloat)waterflowLayout:(WaterflowLayout *)waterflowLayout heightForWidth:(CGFloat)width atIndexPath:(NSIndexPath *)indexPath;

@end

@interface WaterflowLayout : UICollectionViewFlowLayout
// 整体距离上左下右的距离参数
@property(nonatomic,assign)UIEdgeInsets sectionInset;
// 每一列之间的间距
@property(nonatomic,assign)CGFloat columnMargin;
// 每一行之间的间距
@property(nonatomic,assign)CGFloat rowMargin;
// 显示多少列
@property(nonatomic,assign)int columnCount;

@property(nonatomic,weak)id<WaterflowLayoutDelegate>waterflowDelegate;
@end
